<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>

<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="css/style.css">
  <style>
    body{
        width: 960px;
        margin-left: auto;
        margin-right: auto;
    }
  </style>
</head>
<body class="body">
	
	<%@include file="include/top.jsp" %>
	<div class="container" style="padding-top:10px">
	  <div class="row">
		<div class="span3">
			<%@ include file="include/left.jsp" %>
	    </div>
		<div class="span9">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0">
				<li class="active">
					<a href="idea.jspx"><i class="icon-fire"></i>想法</a>>${idea.title}
				</li>
			</ul>
			<div class="wall">
				  <div class="page-header" style="margin:0px">
					<h3>${idea.title}&nbsp;&nbsp;<small>${idea.user.username }发布于 ${idea.viewcreatetime }</small></h3>
				  </div>
				  <p>${idea.content }</p>
				  
				  <div class="line">
					评论
				  </div>
				  <form>
				 	 <input type="hidden" value="${idea.id }" name="id"/>
					<textarea name="" id="" class="span8" rows="5" placeholder="你觉得呢？" style="padding:5px"></textarea>
					<br/>
					<button class="btn">发布</button>
				  </form>

				 <c:choose>
				  	<c:when test="${empty ideaComment }">
				  		<span style="color:red;font-size:16px;">还没有任何的评论。。你来评论下吧。。。</span>
				  	</c:when>
				  	<c:otherwise>
				  		
				  	</c:otherwise>
				  </c:choose>
				  <c:forEach items="${ideaComment }" var="s">
				  		<blockquote>
							  <div style="display:inline;width:100px;float:left">
							  		<img src="showimg.img?n=${s.user.pic }" width="60" height="60" style="display:inline"/>
							  		<br/>&nbsp;&nbsp;&nbsp;&nbsp;${s.user.username }
							  </div>
							  <div style="display:inline;float:left"><p style="font-size:16px;line-height:1.5;display:inline">${s.content }</p></div>
							  <div style="clear:both;"></div>
							  <small style="margin-left:450px;margin-top:15px;">${s.user.username }发布于 ${s.viewcreatetime }</small>
						</blockquote>
				  </c:forEach>
				 
				<a href="idea.jspx">←返回想法列表</a>
			</div>
		</div>
	  </div>
	</div>
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){

		});
	</script>
</body>
</html>
